body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.timer-display {
    font-size: 5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #2c3e50;
}

.controls {
    margin: 1.5rem 0;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.settings {
    margin: 1.5rem 0;
    text-align: left;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.setting-group {
    margin: 0.8rem 0;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

input[type="number"] {
    width: 50px;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

select {
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.status {
    margin-top: 1rem;
    font-style: italic;
    color: #7f8c8d;
}

/* 工作状态样式 */
.work-mode {
    background-color: #ffeceb;
}

.break-mode {
    background-color: #e8f5e9;
}
/* 更新工作/休息模式样式 */
.work-mode {
    background-color: #ffeceb;
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
}

.break-mode {
    background-color: #e8f5e9;
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
}

/* 更新按钮颜色使用CSS变量 */
button {
    background-color: var(--primary-color);
}

button:hover {
    background-color: var(--secondary-color);
}

h1 {
    color: var(--primary-color);
}

.timer-display {
    color: var(--secondary-color);
}